package collection;

import java.util.ArrayList;
import java.util.*;

public class test {
	public static void main(String[] args){
		ArrayList<emp> emplist=new ArrayList<emp>();
	//	ArrayList<emp> emplist1=new ArrayList<emp>();
		emplist.add(new emp("10","jack","london","male"));
		emplist.add(new emp("15","sac","usa","female"));
		emplist.add(new emp("19","rona","britain","female"));
		emplist.add(new emp("1","maggi","newyork","male"));
		emplist.add(new emp("8","sola","usa","female"));
		System.out.println(emplist);
		Collections.sort(emplist);
		System.out.println("sorted list\n:"+emplist);
		Collections.sort(emplist);
		System.out.println("sorted addr\n:"+emplist);
		
		

}
}
